# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-xml-smart
pkgver=1.79
pkgrel=10
pkgdesc="Perl/CPAN Module XML::Smart"
arch=("any")
url="https://search.cpan.org/dist/XML-Smart"
license=("GPL" "PerlArtistic")
depends=("perl-object-multitype")
source=("https://search.cpan.org/CPAN/authors/id/T/TM/TMHARISH/XML-Smart-$pkgver.tar.gz")
sha256sums=('f787efaf9b8dcd1b51085f190acdaae155007a78ba668ffe40d56226f5f2b488')

build() {
  cd "$srcdir"/XML-Smart-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/XML-Smart-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
